#include "StdAfx.h"
#include "RendElement.h"
#include "CREFarTreeSprites.h"
#include "I3DEngine.h"


void CREFarTreeSprites::mfPrepare(bool bCheckOverflow)
{
  if (bCheckOverflow)
    gRenDev->FX_CheckOverflow(0, 0, this);

  gRenDev->m_RP.m_pRE = this;
  gRenDev->m_RP.m_RendNumIndices = 0;
  gRenDev->m_RP.m_RendNumVerts = 0;
}

bool CREFarTreeSprites::mfDraw(CShader *ef, SShaderPass *sfm)
{    
  gRenDev->DrawObjSprites(m_arrVegetationSprites[gRenDev->m_RP.m_nProcessThreadID][SRendItem::m_RecurseLevel[gRenDev->m_RP.m_nProcessThreadID]-1]);
  return true;
}
